<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const navigateTo = (route) => {
  router.push(route)
}
</script>

<template>
  <div class="home-container">
    <h1>AI 应用中心</h1>
    
    <div class="app-cards">
      <div class="app-card" @click="navigateTo('/love-master')">
        <div class="app-icon">❤️</div>
        <h2>AI 恋爱大师</h2>
        <p>与AI恋爱大师聊天，获取恋爱建议和情感支持</p>
      </div>
      
      <div class="app-card" @click="navigateTo('/super-agent')">
        <div class="app-icon">🤖</div>
        <h2>AI 超级智能体</h2>
        <p>体验超级智能AI，解答各种问题，提供专业建议</p>
      </div>
    </div>
  </div>
</template>

<style scoped>
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.app-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.app-card {
  width: 300px;
  padding: 2rem;
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.app-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.app-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.app-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.app-card p {
  color: #666;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .app-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .app-card {
    width: 100%;
    max-width: 400px;
  }
}
</style>